var navigation = {

    /**
     * Assign another URL to the page (location property). If the url isn't correct the method will fixed it
     * @param {String} url
     * @param {context} context of an Object (by default this window)
     */

    goToPage: function(url, context) {

        if (!utils.isString(url)) {
            throw new Error("You need to put correct url {string}");
        }

        if (url.substring(0, 7) !== "http://") {
            url = "http://" + url;
        }

        if (!context) {
            window.location = url;
        } else {
            context.location = url;
        }

    }

};
